<layout name="master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">分类管理</a></li>
    <li><a href="#">添加分类</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">添加分类</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">添加分类</header>
            <div class="panel-body">
                <form action="" method="POST" class="form-horizontal" role="form">
                    <fieldset>
                        <legend>添加商品分类</legend>
                        <table class="table table-bordered table-hover">
                            <if condition='$type'>
                                <tr class="info">
                                    <td>所属类型</td>
                                    <td>
                                        <select name="tid" >
                                            <option value="0">请选择</option>
                                            <foreach name='type' item='v'>
                                                <option value="{$v.tid}">{$v.tname}</option>
                                            </foreach>
                                        </select>
                                    </td>
                                </tr>
                            </if>
                            <tr class="info">
                                <td>分类名称</td>
                                <td>
                                    <input type="text" name='cname' value="{$oldData['cname']}"/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <input type="hidden" name='pid' value='{$pid}'/>

                                </td>
                            </tr>
                        </table>
                        <input type="submit" value="添加分类" class="btn btn-primary" />
                    </fieldset>
                </form>

            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _) {
    }
</script>
